home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / Qpopper / pop_quit.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-01  |  797 b   |  33 lines

  1. /*
  2.  * Copyright (c) 1989 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  */
  6.  
  7. #ifndef lint
  8. static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
  9. static char SccsId[] = "@(#)@(#)pop_quit.c    2.1  2.1 3/18/91";
  10. #endif not lint
  11.  
  12. #include <stdio.h>
  13. #include <sys/types.h>
  14. #include "popper.h"
  15.  
  16. /* 
  17.  *  quit:   Terminate a POP session
  18.  */
  19.  
  20. int pop_quit (p)
  21. POP     *   p;
  22. {
  23.     /*  Release the message information list */
  24.     if (p->mlp) free ((char *)p->mlp);
  25.  
  26.     if (p->CurrentState == auth2) {
  27.     pop_log(p, POP_SUCCESS, "Possible probe of account %s from host %s",
  28.                             p->user, p->client);
  29.     }
  30.  
  31.     return(POP_SUCCESS);
  32. }
  33.